<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	    <title>处理含有复选的表面页面</title>
  </head>
<BODY>
    你好，<%=request.getParameter("username")%> <br> 
    <%    
    String love=new String("你喜欢吃的水果有：");
    String[] params = request.getParameterValues("checkbox1");
    if( params!=null )  {
        for(int i=0;i<params.length;i++) 
        love+=params[i]+"  ";
    }
   %>
   <%=love%>
</BODY>

</html>
